package com.ruoyi.project.datamanage.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.datamanage.domain.Income;
import com.ruoyi.project.datamanage.service.IncomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/datamanage/income")
public class IncomeController extends BaseController {
    @Autowired
    private IncomeService incomeService;

       public AjaxResult   getIncomeSum(int prescriptionSinglePrice){

           Income income= incomeService.selectIncomeSum(prescriptionSinglePrice);
            return AjaxResult.success(income);
       }
}
